<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js示例4-11-2</title>
	<script>
		var tel = "电话号码：13333123456";
		var reg = /[\d]{11}/
		document.write(tel.search(reg));
		
	</script>
</head>
<body>
	
</body>
</html>